<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>The small3d library: small3d::GlbFile Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="customdoxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo_s.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">The small3d library
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacesmall3d.html">small3d</a></li><li class="navelem"><a class="el" href="classsmall3d_1_1_glb_file.html">GlbFile</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classsmall3d_1_1_glb_file-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">small3d::GlbFile Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>.glb (glTF) file parser class. It can load meshes, textures and linear animations from samplers with a common input (the rest are ignored).  
 <a href="classsmall3d_1_1_glb_file.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_glb_file_8hpp_source.html">GlbFile.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for small3d::GlbFile:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classsmall3d_1_1_glb_file.png" usemap="#small3d::GlbFile_map" alt=""/>
  <map id="small3d::GlbFile_map" name="small3d::GlbFile_map">
<area href="classsmall3d_1_1_file.html" title="Abstract file parser class." alt="small3d::File" shape="rect" coords="0,0,100,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a864e3d5ca31cd99f5fd87f8533aa5260"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsmall3d_1_1_glb_file.html#a864e3d5ca31cd99f5fd87f8533aa5260">GlbFile</a> (const std::string &amp;fileLocation)</td></tr>
<tr class="memdesc:a864e3d5ca31cd99f5fd87f8533aa5260"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor of the <a class="el" href="classsmall3d_1_1_glb_file.html" title=".glb (glTF) file parser class. It can load meshes, textures and linear animations from samplers with ...">GlbFile</a> class.  <a href="classsmall3d_1_1_glb_file.html#a864e3d5ca31cd99f5fd87f8533aa5260">More...</a><br /></td></tr>
<tr class="separator:a864e3d5ca31cd99f5fd87f8533aa5260"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a593e1b7000f33f458dbbce7ac068945e"><td class="memItemLeft" align="right" valign="top"><a id="a593e1b7000f33f458dbbce7ac068945e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsmall3d_1_1_glb_file.html#a593e1b7000f33f458dbbce7ac068945e">printTokensRecursive</a> ()</td></tr>
<tr class="memdesc:a593e1b7000f33f458dbbce7ac068945e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Recursively print all tokens, starting from the head of the first token queue, dereferencing queue references. <br /></td></tr>
<tr class="separator:a593e1b7000f33f458dbbce7ac068945e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acfdbe51e25ac549cc5220118b40f8f02"><td class="memItemLeft" align="right" valign="top"><a id="acfdbe51e25ac549cc5220118b40f8f02"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsmall3d_1_1_glb_file.html#acfdbe51e25ac549cc5220118b40f8f02">printTokensSerial</a> ()</td></tr>
<tr class="memdesc:acfdbe51e25ac549cc5220118b40f8f02"><td class="mdescLeft">&#160;</td><td class="mdescRight">Print tokens as found in the token queues, without dereferencing queue references. <br /></td></tr>
<tr class="separator:acfdbe51e25ac549cc5220118b40f8f02"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ca3c6162424ae0a7486726e5162c729"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsmall3d_1_1_glb_file.html#a0ca3c6162424ae0a7486726e5162c729">load</a> (<a class="el" href="classsmall3d_1_1_model.html">Model</a> &amp;model, const std::string &amp;meshName=&quot;&quot;) override</td></tr>
<tr class="memdesc:a0ca3c6162424ae0a7486726e5162c729"><td class="mdescLeft">&#160;</td><td class="mdescRight">Load a mesh from the file into a <a class="el" href="classsmall3d_1_1_model.html" title="A 3D model. It can be loaded from a WavefrontFile or GlbFile. It can also be constructed procedurally...">Model</a>.  <a href="classsmall3d_1_1_glb_file.html#a0ca3c6162424ae0a7486726e5162c729">More...</a><br /></td></tr>
<tr class="separator:a0ca3c6162424ae0a7486726e5162c729"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad256dbe342d444e4f53dc534262a51e"><td class="memItemLeft" align="right" valign="top">std::vector&lt; std::string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsmall3d_1_1_glb_file.html#aad256dbe342d444e4f53dc534262a51e">getMeshNames</a> () override</td></tr>
<tr class="memdesc:aad256dbe342d444e4f53dc534262a51e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a list of the names of the meshes contained in the file.  <a href="classsmall3d_1_1_glb_file.html#aad256dbe342d444e4f53dc534262a51e">More...</a><br /></td></tr>
<tr class="separator:aad256dbe342d444e4f53dc534262a51e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classsmall3d_1_1_file"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classsmall3d_1_1_file')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classsmall3d_1_1_file.html">small3d::File</a></td></tr>
<tr class="memitem:a81bb5738b0904d6904ee39a34e710271 inherit pub_methods_classsmall3d_1_1_file"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsmall3d_1_1_file.html#a81bb5738b0904d6904ee39a34e710271">File</a> (const std::string &amp;fileLocation)</td></tr>
<tr class="memdesc:a81bb5738b0904d6904ee39a34e710271 inherit pub_methods_classsmall3d_1_1_file"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="classsmall3d_1_1_file.html#a81bb5738b0904d6904ee39a34e710271">More...</a><br /></td></tr>
<tr class="separator:a81bb5738b0904d6904ee39a34e710271 inherit pub_methods_classsmall3d_1_1_file"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_attribs_classsmall3d_1_1_file"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classsmall3d_1_1_file')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="classsmall3d_1_1_file.html">small3d::File</a></td></tr>
<tr class="memitem:af2a429b0fc4ae0911a18043da131f2a0 inherit pro_attribs_classsmall3d_1_1_file"><td class="memItemLeft" align="right" valign="top"><a id="af2a429b0fc4ae0911a18043da131f2a0"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsmall3d_1_1_file.html#af2a429b0fc4ae0911a18043da131f2a0">fullPath</a> = &quot;&quot;</td></tr>
<tr class="memdesc:af2a429b0fc4ae0911a18043da131f2a0 inherit pro_attribs_classsmall3d_1_1_file"><td class="mdescLeft">&#160;</td><td class="mdescRight">The path to the file being parsed. <br /></td></tr>
<tr class="separator:af2a429b0fc4ae0911a18043da131f2a0 inherit pro_attribs_classsmall3d_1_1_file"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>.glb (glTF) file parser class. It can load meshes, textures and linear animations from samplers with a common input (the rest are ignored). </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a864e3d5ca31cd99f5fd87f8533aa5260"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a864e3d5ca31cd99f5fd87f8533aa5260">&#9670;&nbsp;</a></span>GlbFile()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">small3d::GlbFile::GlbFile </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>fileLocation</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor of the <a class="el" href="classsmall3d_1_1_glb_file.html" title=".glb (glTF) file parser class. It can load meshes, textures and linear animations from samplers with ...">GlbFile</a> class. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fileLocation</td><td>The name and path of the GLB file to be parsed </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="aad256dbe342d444e4f53dc534262a51e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aad256dbe342d444e4f53dc534262a51e">&#9670;&nbsp;</a></span>getMeshNames()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt; std::string &gt; small3d::GlbFile::getMeshNames </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get a list of the names of the meshes contained in the file. </p>
<dl class="section return"><dt>Returns</dt><dd>The list of mesh names </dd></dl>

<p>Implements <a class="el" href="classsmall3d_1_1_file.html#a1fa8b53546f047cf51793672d1c33bbc">small3d::File</a>.</p>

</div>
</div>
<a id="a0ca3c6162424ae0a7486726e5162c729"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0ca3c6162424ae0a7486726e5162c729">&#9670;&nbsp;</a></span>load()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void small3d::GlbFile::load </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classsmall3d_1_1_model.html">Model</a> &amp;&#160;</td>
          <td class="paramname"><em>model</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>meshName</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Load a mesh from the file into a <a class="el" href="classsmall3d_1_1_model.html" title="A 3D model. It can be loaded from a WavefrontFile or GlbFile. It can also be constructed procedurally...">Model</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">model</td><td>The <a class="el" href="classsmall3d_1_1_model.html" title="A 3D model. It can be loaded from a WavefrontFile or GlbFile. It can also be constructed procedurally...">Model</a> into which to load the data </td></tr>
    <tr><td class="paramname">meshName</td><td>The name of the mesh to load </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="classsmall3d_1_1_file.html#a9506a37fb517dc4fe5e2fee67af60934">small3d::File</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="_glb_file_8hpp_source.html">GlbFile.hpp</a></li>
<li>GlbFile.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>
